#pragma once

//#include <srs_app_refer.hpp>
#include <srs_core.hpp>

#include <string>

class SrsConfDirective;

class SrsRefer {
public:
    SrsRefer();
    virtual ~SrsRefer();
public:
    /**
    * to check the refer.
    * @param page_url the client page url.
    * @param refer the refer in config.
    */
    virtual int check(const std::string& page_url, SrsConfDirective* refer);
private:
    virtual int check_single_refer(const std::string& page_url, const std::string& refer);
};
